export default {
  data() {
    return {
      height: 0
    }
  },
  mounted() {
    this.$nextTick(() => {
      this.initHeight()
    })
  },
  methods: {
    initHeight() {
      this.height = document.body.clientHeight - this.defaultHeight
      window.onresize = () => {
        this.height = document.body.clientHeight - this.defaultHeight
      }
    }
  }
}
